package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class EveryYearSpotWarnCountMapper implements RowMapper<EveryYearSpotWarnCount> {
    @Override
    public EveryYearSpotWarnCount mapRow(ResultSet rs, int rowNum) throws SQLException {
        EveryYearSpotWarnCount everyYearSpotWarnCount=new EveryYearSpotWarnCount();
        everyYearSpotWarnCount.setSpotid(rs.getString("spotid"));
        everyYearSpotWarnCount.setTimes(rs.getString("times"));
        everyYearSpotWarnCount.setWarn(rs.getString("warn"));
        return everyYearSpotWarnCount;
    }
}
